package cn.edu.tju.scs.network.ftp.utils;

import com.sun.istack.internal.NotNull;

/**
 * Created by catold on 16/1/7.
 */
public class UserProfile {
    @NotNull
    private String username;
    @NotNull
    private String pwd;
    private String curPath;

    public UserProfile() {
    }

    public UserProfile(String username, String pwd) {
        this.username = username;
        this.pwd = pwd;
        this.curPath = SystemConfig.PATH_ROOT + "/" + username;
    }

    public UserProfile(String username, String pwd, String curPath) {
        this.username = username;
        this.pwd = pwd;
        this.curPath = curPath;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getCurPath() {
        return curPath;
    }

    public void setCurPath(String curPath) {
        this.curPath = curPath;
    }

    public boolean equals(UserProfile userProfile){
        return this.getUsername().equals(userProfile.getUsername()) && this.getPwd().equals(userProfile.getPwd());
    }

}
